package com.sixteengroup.personnelms.dao.personnel;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sixteengroup.personnelms.bean.RecruitmentInfo;
import com.sixteengroup.personnelms.bean.Staff;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @InterfaceName StaffRecruitment
 * @Author 陈新予(blank)
 * @Date 2021/8/14
 * @Version 1.0
 */
@Component
public interface StaffRecruitmentMapper extends BaseMapper<RecruitmentInfo> {

    List<RecruitmentInfo> getAllRecInfo();

    void deleteRecInfo(int id);

    void addRecInfo(@Param("id") int id, @Param("res") int res);

    void saveStaffDept(@Param("userId")int userId, @Param("deptid")int deptid);

    void updateUserStatus(int userId);

    void saveStaffFlowLog(int userId, int deptid);
}
